/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.beans.XMLDecoder;
import java.io.*;
//package cp2004_assignment2;

/**
 **Display ProductList
 * @author zhaoyingxi
 */
public class list {
    public static void main(String[] args) {

        XMLDecoder proList;

        try {
            proList = new XMLDecoder(new BufferedInputStream(new FileInputStream("productlist.xml")));
            while (true) {
                //Product test = (Product) proList.readObject();
                //System.out.println(test);  //output list
            }
        } catch (FileNotFoundException e) {
            System.out.println("Error!");  //output wrong info
        }

    }

}
